let DB_CONF = null;
let REDIS_CONF = null

if(process.env.NODE_ENV === 'dev'){
    DB_CONF={
        host:'localhost',
        port:'3306',
        user:'root',
        password:'123456',
        database:'myblog'
    }
    REDIS_CONF={
        host:'localhost',
        port:'6379',
    }
}else {
    DB_CONF={
        host:'http://xxxxx.xxx',
        port:'3306',
        user:'root',
        password:'123456',
        database:'myblog'
    }
    REDIS_CONF={
        host:'http://xxxxx.redis',
        port:'6379',
    }
}

module.exports = {
    DB_CONF,
    REDIS_CONF
}
